<template>
  <div class="q-pa-md" style="max-width: 300px">
    <t-input filled v-model="date" mask="date" :rules="['date']">
      <template v-slot:append>
        <t-icon name="event" class="cursor-pointer">
          <t-popup-proxy cover transition-show="scale" transition-hide="scale">
            <t-date v-model="date">
              <div class="row items-center justify-end">
                <t-btn v-close-popup label="Close" color="primary" flat />
              </div>
            </t-date>
          </t-popup-proxy>
        </t-icon>
      </template>
    </t-input>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        date: ref('2019/02/01'),
      };
    },
  };
</script>
